package com.upu173.music.db.inside;

import android.content.Context;

import com.andbase.library.db.orm.helper.AbDBHelper;
import com.upu173.music.model.PlayList;
import com.upu173.music.model.Song;

public class DBInsideHelper extends AbDBHelper {

	private static DBInsideHelper dbHelper;

	// 数据库名
	private static final String DB_NAME = "music.db";
    
    // 当前数据库的版本
	private static final int DB_VERSION = 1;

	// 要初始化的表
	private static final Class<?>[] clazz = { Song.class, PlayList.class};

	public static DBInsideHelper getInstance(Context context) {
		if(dbHelper == null){
			dbHelper = new DBInsideHelper(context);
		}
		return dbHelper;
	}

	public DBInsideHelper(Context context) {
		super(context, DB_NAME, null, DB_VERSION, clazz);
	}

}



